
    {ldelim}link action='index' label='Back to list'{rdelim}
    <h2>Edit {$var_name}</h2>
    {ldelim}form action='update' parameter=${$var_name}->primary_key(){rdelim}
      <table id="{$plur_var_name}">
        {ldelim}foreach from=${$var_name}->structure() item=field{rdelim}
        {ldelim}if $field != ${$var_name}->primary_key_name(){rdelim}
        <tr>
          <td class="header">{ldelim}$field|humanize{rdelim}:</td>
          <td class="content">{ldelim}form_element name="{$var_name}[$field]" value=${$var_name}->$field|htmlspecialchars type=$field->type{rdelim}</td>
        </tr>
        {ldelim}/if{rdelim}
        {ldelim}/foreach{rdelim}
      </table>
      <input type="submit" value="Save changes" /><br />
      {ldelim}link action='show' parameter=${$var_name}->primary_key() label='Show'{rdelim}
      {ldelim}link action='edit' parameter=${$var_name}->primary_key() label='Edit'{rdelim}
      {ldelim}link action='delete' parameter=${$var_name}->primary_key() label='Delete'{rdelim}
    {ldelim}/form{rdelim}
    <hr />
   